home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / DragIconP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  2.1 KB  |  93 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: DragIconP.h,v $ $Revision: 1.29 $ $Date: 92/05/14 12:50:15 $ */
  6. /*
  7. *  (c) Copyright 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  8.  
  9. #ifndef _XmDragIconP_h
  10. #define _XmDragIconP_h
  11.  
  12. #include <Xm/VendorSEP.h>
  13. #include <Xm/DragIcon.h>
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19.  
  20. #ifdef _NO_PROTO
  21. typedef void     (*XmCloneVisualProc)();
  22. typedef void     (*XmMovePixmapProc)();
  23. #else
  24. typedef void (*XmCloneVisualProc)
  25.     (XmDragIconObject, Widget, Widget);
  26. typedef void (*XmMovePixmapProc)
  27.      (XmDragIconObject, XmDragIconObject, XmDragIconObject,
  28. #if NeedWidePrototypes
  29.       int, int);
  30. #else
  31.       Position, Position);
  32. #endif /* NeedWidePrototypes */
  33. #endif /* _NO_PROTO */
  34.  
  35. typedef struct {
  36.     XtPointer        extension;
  37. } XmDragIconClassPart;
  38.  
  39. typedef struct _XmDragIconClassRec{
  40.     RectObjClassPart        rectangle_class;
  41.     XmDragIconClassPart        dragIcon_class;
  42. }XmDragIconClassRec;
  43.  
  44. typedef struct {
  45.     Cardinal    depth;
  46.     Pixmap    pixmap;
  47.     Dimension    width, height;
  48.     Pixmap    mask;
  49.     Position    hot_x, hot_y;
  50.     Position    offset_x, offset_y;
  51.     unsigned char    attachment;
  52.     Boolean    isDirty;
  53. } XmDragIconPart, *XmDragIconPartPtr;
  54.  
  55. externalref XmDragIconClassRec     xmDragIconClassRec;
  56.  
  57. typedef struct _XmDragIconRec{
  58.     ObjectPart            object;
  59.     RectObjPart            rectangle;
  60.     XmDragIconPart        drag;
  61. }XmDragIconRec;
  62.  
  63. /********    Private Function Declarations    ********/
  64. #ifdef _NO_PROTO
  65.  
  66. extern void _XmDestroyDefaultDragIcon() ;
  67. extern Boolean _XmDragIconIsDirty() ;
  68. extern void _XmDragIconClean() ;
  69. extern Widget _XmGetTextualDragIcon() ;
  70.  
  71. #else
  72.  
  73. extern void _XmDestroyDefaultDragIcon(
  74.             XmDragIconObject icon) ;
  75. extern Boolean _XmDragIconIsDirty(
  76.             XmDragIconObject icon) ;
  77. extern void _XmDragIconClean(
  78.             XmDragIconObject icon1,
  79.             XmDragIconObject icon2,
  80.             XmDragIconObject icon3) ;
  81. extern Widget _XmGetTextualDragIcon(
  82.             Widget w) ;
  83.  
  84. #endif /* _NO_PROTO */
  85. /********    End Private Function Declarations    ********/
  86.  
  87.  
  88. #ifdef __cplusplus
  89. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  90. #endif
  91.  
  92. #endif /* _XmDragIconP_h */
  93.